package com.sniff.atp.service.common;

import com.alibaba.fastjson2.JSONObject;
import com.sniff.atp.utils.HttpClientUtil;
import org.springframework.stereotype.Service;

/**
 * @BelongsProject: sniff-atp
 * @BelongsPackage: com.sniff.atp.service.common
 * @Author: zxy
 * @CreateTime: 2023-10-12 16:03
 * @Description:
 * @Version: 1.0
 */
@Service
public class GetTestPlanFromAliyun {
    public Object getTestPlan(String cookies) {
        JSONObject params = new JSONObject();
        params.put("cookies", cookies);

        String url = "http://192.168.201.161:11234/getPlan";

        String result = new HttpClientUtil().doPostJson(url, params);
        return result;
    }
}
